package cn.yj.frame.protrol;

import java.io.Serializable;

/**
 * 传输协议
 * @author 永健
 * @since 2022-01-18 17:02
 */
public class RpcProtocol implements Serializable {
    /**
     * beanName
     */
    private String beanName;

    /**
     * 方法名
     */
    private String methodName;

    /**
     * 方法参数
     */
    private Object[] methodParams;

    private Class<?>[] methodParamsType;

    public Class<?>[] getMethodParamsType() {
        return methodParamsType;
    }

    public RpcProtocol setMethodParamsType(Class<?>[] methodParamsType) {
        this.methodParamsType = methodParamsType;
        return this;
    }

    public String getBeanName() {
        return beanName;
    }

    public RpcProtocol setBeanName(String beanName) {
        this.beanName = beanName;
        return this;
    }

    public String getMethodName() {
        return methodName;
    }

    public RpcProtocol setMethodName(String methodName) {
        this.methodName = methodName;
        return this;
    }

    public Object[] getMethodParams() {
        return methodParams;
    }

    public RpcProtocol setMethodParams(Object[] methodParams) {
        this.methodParams = methodParams;
        return this;
    }
}
